package com.gopay.common.constants.cbrmb.customs;

public enum CustomsOrderStatus {
	_00("待报关", "00"),

	_01("进行中", "01"),

	_02("成功", "02"),

	_03("已删除", "03");

	private String name;

	private String index;

	private CustomsOrderStatus(String name, String index) {
		this.name = name;
		this.index = index;
	}

	public static String getName(String index) {
		for (CustomsOrderStatus status : CustomsOrderStatus.values()) {
			if (status.getIndex().equals(index)) {
				return status.getName();
			}
		}
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

}
